package secondriver.springsubway.example.rpv.validator;


import net.sf.oval.guard.Guard;
import secondriver.springsubway.example.rpv.ParameterValidator;

/**
 * Created by ZhangXiao on 2015/6/12.
 */
public class AnnotationParameterValidator extends AbstractParameterValidator {

    private static AnnotationParameterValidator annotationParameterValidator;

    public synchronized static ParameterValidator instance() {
        if (null == annotationParameterValidator) {
            annotationParameterValidator = new AnnotationParameterValidator();
        }
        return annotationParameterValidator;
    }

    @Override
    public void initGuard() {
        guard = new Guard();
    }
}